package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class IntervalType implements PredefinedType {

    private int beginIndex;
    private int endIndex;
    private IntervalQualifier intervalQualifier;

    public IntervalType(int beginIndex, IntervalQualifier intervalQualifier) {
        this.beginIndex = beginIndex;
        this.endIndex = intervalQualifier.getEndIndex();
        this.intervalQualifier = intervalQualifier;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public IntervalQualifier getIntervalQualifier() {
        return intervalQualifier;
    }

}
